-
-
Notifications
You must be signed in to change notification settings - Fork 157
GH1318 Set more defaults in pandas/core #1569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| def map(self, mapper): ... | ||
| def to_dense(self): ... | ||
| def nonzero(self): ... | ||
| def all(self, axis=..., *args: Any, **kwargs: Any): ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def all(self, axis=..., *args: Any, **kwargs: Any): ... | |
| def all(self, axis: AxisInt = 0, *args: Any, **kwargs: Any): ... |
pandas-stubs/core/indexes/multi.pyi
Outdated
| sortorder: int | None = None, | ||
| names: SequenceNotStr[Hashable] | None = None, | ||
| copy: bool = False, | ||
| name: SequenceNotStr[Hashable] | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| name: SequenceNotStr[Hashable] | None = None, | |
| name: None = None, |
Kept for compatibility with 1-dimensional Index. Should not be used.
| self, | ||
| freq: Frequency | None, | ||
| ambiguous: Literal["raise", "infer", "NaT"] | bool | np_ndarray_bool = ..., | ||
| ambiguous: Literal["raise", "infer", "NaT"] | bool | np_ndarray_bool = "raise", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ambiguous: Literal["raise", "infer", "NaT"] | bool | np_ndarray_bool = "raise", | |
| ambiguous: TimeAmbiguous = "raise", |
and also for the other two cases
| nonexistent: ( | ||
| Literal["shift_forward", "shift_backward", "NaT", "raise"] | ||
| | timedelta | ||
| | Timedelta | ||
| ) = ..., | ||
| ) = "raise", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| nonexistent: ( | |
| Literal["shift_forward", "shift_backward", "NaT", "raise"] | |
| | timedelta | |
| | Timedelta | |
| ) = ..., | |
| ) = "raise", | |
| nonexistent: TimeNonexistent = "raise" |
and also for the other two cases
| def to_pydatetime(self) -> np_1darray_object: ... | ||
| def std( | ||
| self, axis: int | None = ..., ddof: int = ..., skipna: bool = ... | ||
| self, axis: int | None = None, ddof: int = 1, skipna: bool = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://pandas.pydata.org/docs/dev/reference/api/pandas.DatetimeIndex.std.html
| self, axis: int | None = None, ddof: int = 1, skipna: bool = True | |
| self, axis: int | None = None, ddof: int = 1, keepdims: bool | None = False, skipna: bool = True |
| @overload | ||
| def __new__( | ||
| cls, | ||
| data: DatetimeIndex, | ||
| *, | ||
| dtype: TimestampDtypeArg | None = ..., | ||
| copy: bool = ..., | ||
| name: Hashable = ..., | ||
| tupleize_cols: bool = ..., | ||
| ) -> DatetimeIndex: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry should have added a comment, it is taken care by the overload line 232
assert_type()to assert the type of any return value)AGENTS.md.Following the work of @MarcoGorelli in #1318